﻿using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace Reader.Core.DataAccessObject.Models
{
    public class BasicEntity<T> : IEntiry<T>
    {
        [Key]
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public virtual T Id { get; set; }
        [Required]
        public virtual DateTime CreateDateTime { get; set; }
        public virtual DateTime? ModifiedDateTime { get; set; }
        [Timestamp]
        public virtual byte[] RowVersion { get; set; }
    }
}
